<div id="kis">
	{$page_html}
</div>

<table>
	<thead>
	<tr>
		<th width="2%" class="head0 nolborder">
			<a id="manager_selectall" style="border:0px;text-indent:-9999px;" class="btn btn3 btn_unselectall btn_selectall tooltips" href="javascript:void(0);" title="全选">全选</a>
		</th>
		<th width="7%" class="head1">关键词</th>
		<th width="10%">推广单元名称</th>
		<th width="5%"  class="head0 sortable desc" data-sort='impressions'>展现量</th>
		<th width="5%" class="head1 sortable" data-sort='click'>点击量</th>
		<th width="5%" class="head0 sortable" data-sort='ctr'>点击率</th>
		<th width="7%" class="head1 sortable" data-sort='cpc'>平均点击花费</th>
		<th width="4%" class="head1 sortable" data-sort='cvr'>点击转化率</th>
		<th width="4%" class="head1 sortable" data-sort='avgpos'>宝贝排名</th>
		<th width="4%" class="head1 sortable" data-sort='ravgpos'>实时排名</th>
		<th width="4%" class="head0 sortable" data-sort='qscore'>计算机质量得分</th>
		<th width="4%" class="head0 sortable" data-sort='wireless_qscore'>移动质量得分</th>
		<th width="4%" class="head1 sortable" data-sort='cost'>总花费</th>
		<th width="4%" class="head0 sortable" data-sort='sales'>总成交金额</th>
		<th width="4%" class="head0 sortable" data-sort='total_pay_count'>总成交笔数</th>
		<th width="4%" class="head0 sortable" data-sort='roi'>投入产出比</th>
		<th width="4%" class="head0 sortable" data-sort='fav_count'>总收藏数</th>
		<th width="4%" class="head0 sortable" data-sort='cart_total'>购物车数</th>
		<th width="8%" class="head0">当前出价</th>
		<th  class="head0 norborder">操作</th>
	</tr>
	</thead>
	<tbody id="keywords_tbody">
	<if condition="$keywords">
		<volist name="keywords" id="v">
			<tr class="active keyword_row gradeX" id="keyword_{$v.keyword_id}" data-campaign_id="{$v.campaign_id}" data-adgroup_id="{$v.adgroup_id}" data-item_id="{$v.num_iid}" data-matchscope="{$v.matchscope}" data-mobile_is_default_price="{$v.mobile_is_default_price}">
				<td width="42px" class="center nolborder">
					<if condition="$v.keyword_id gt 10">
						<input value="{$v.keyword_id}" id="k_check_{$v.keyword_id}"  name="keyword_id" type="checkbox" class="keyword_id checkit">
					</if>
				</td>

				<td width="76px" class="center word <in name="v.keyword_id" value="$action_keywords['all_keyword_iids']">red</in>">
				<span class="str"><if condition="$v.matchscope eq '1'">(<else/><if condition="$v.matchscope eq '2'">"</if></if>{$v.word}<if condition="$v.matchscope eq '1'">)<else/><if condition="$v.matchscope eq '2'">"</if></if><!-- label for="k_check_{$v.keyword_id}">{$v.word}</label--></span>
				<input type="hidden" value="{$v.word}" name="word" class="row_word"/>
				<span class="keywordActionInfo"></span>
				</td>
				<td width="170px">
					<div class="imgtxt60">
						<div class="photo">
							<a class="img60" href="http://item.taobao.com/item.htm?id={$v.num_iid}" target="_blank">
								<img src="{$v.img_url|display_str}" alt="{$v.a_title|display_str}">
							</a>
						</div>
						<p class="title">
							<a href="http://item.taobao.com/item.htm?id={$v.num_iid}" target="_blank">{$v.a_title|display_str}</a>
						</p>
					</div>
				</td>
				<td width="43px"class="center num sortable">{$v.impressions|display_str}</td>
				<td width="43px"class="center num sortable">{$v.click|display_str}</td>
				<td width="43px"class="center num sortable">{$v.ctr|round=2|display_str}%</td>
				<td width="44px"class="center num sortable">￥{$v.cpc|round=2|display_str}</td>
				<td width="44px"class="center num sortable">{$v.cvr|round=2|display_str}%</td>
				<td width="44px"class="center num sortable">{$v.avgpos|round=0|display_str}</td>
				<td width="44px"class="center num sortable"><span class="realtimeRank"><if condition="$hide eq false"><b style="color:red;">{$v.ravgpos}</b></if></span></td>
				<td width="44px"class="center num sortable">{$v.qscore|display_str}</td>
				<if condition="$v.wireless_qscore gt 0">
				    <td width="44px" class="center num sortable">{$v.wireless_qscore}</td>
				<else />
				    <td width="44px" class="center num sortable">--</td>
		     	</if>
				<td width="44px" class="center num sortable orange">￥{$v.cost|round=2|display_str}</td>
				<td width="44px" class="center num sortable orange">￥{$v.sales|round=2|display_str}</td>
				<td width="44px" class="center num sortable orange">{$v.total_pay_count|round=2|display_str}</td>
				<td width="44px" class="center num sortable orange">{$v['roi']|round=2|display_str} </td>
				<td width="44px" class="center num sortable ">{$v['fav_count']|round=2|display_str} </td>
				<td width="44px" class="center num sortable ">{$v['fav_count_rate']|round=2|display_str}%</td>
				<td width="44px" class="center num sortable ">{$v['cart_total']|round=0|display_str} </td>
				<td width="44px" class="center num sortable ">{$v['cart_total_rate']|round=2|display_str}%</td>
				<td width="46px"class="center">
					<div class="input-prepend small-price">
						<span class="add-on">￥</span>
						<input class="price smallprice currencyinput keyword_price" type="text" name="price" id="default_price" value="{$v['max_price']/100}" style="width:35px"  />
					</div>
					<span class="adjustPriceInfo"><in name="v.keyword_id" value="$action_keywords['keyword_iids']['pc']"><if condition="$action_keywords['keyword_info'][$v['keyword_id']]['action'] == 'adjust'">(原价:￥{$action_keywords['keyword_info'][$v['keyword_id']]['pc']})</if></in></span>
				</td>
				<td width="46px"class="center">
					<div class="input-prepend small-price">
						<if condition="$v.mobile_is_default_price eq 1"><span class="add-on">折</span></if>
						<span class="add-on">￥</span>
						<input class="price smallprice currencyinput keyword_mobile_price" type="text" name="price" id="max_mobile_price" value="{$v['max_mobile_price']|price_display_str}" style="width:35px"  />
					</div>
					<span class="adjustPriceInfo"><in name="v.keyword_id" value="$action_keywords['keyword_iids']['wireless']"><if condition="$action_keywords['keyword_info'][$v['keyword_id']]['action'] == 'adjust'">(原价:￥{$action_keywords['keyword_info'][$v['keyword_id']]['wireless']})</if></in></span>
				</td>
				<td width="77px"class="center">
					<if condition="$v.keyword_id gt 10">
						<a class="btn btn3 btn-nobg btn_trash_s deleteKeyword tooltip" title="删除这个关键词">删除</a>
						<a class="btn btn3 btn-nobg btn_book_s viewKeywordHistory" href="javascript:void(0);" title="查看关键词历史">查看</a>
						<a class="btn btn3 btn-nobg btn_refresh_s ignoreChanges tooltip" title="取消当前所有操作">撤销</a>
						<if condition="$is_admin eq true">
							<a class="btn btn3 btn-nobg btn_settings2_s showAutoLog" data-url="/keyword/autolog?keyword_id={$v.keyword_id}" href="javascript:void(0);" title="查看自动改价历史">查看</a>
						</if>
					</if>
				</td>
			</tr>
		</volist>
		<else/>
		<tr>
			<td colspan="20">无关键词记录</td>
		</tr>
	</if>
	</tbody>
</table>
